import request from '@/utils/request'

// 查询所有遏制地点
export function listALLStemLocation(query) {
  return request({
    url: '/qcmasterdata/stemLocation/listAll',
    method: 'get',
    params: query
  })
}

// 查询遏制地点列表
export function listStemLocation(query) {
  return request({
    url: '/qcmasterdata/stemLocation/list',
    method: 'get',
    params: query
  })
}

// 查询遏制地点详细
export function getStemLocation(id) {
  return request({
    url: '/qcmasterdata/stemLocation/' + id,
    method: 'get'
  })
}

// 新增遏制地点
export function addStemLocation(data) {
  return request({
    url: '/qcmasterdata/stemLocation',
    method: 'post',
    data: data
  })
}

// 修改遏制地点
export function updateStemLocation(data) {
  return request({
    url: '/qcmasterdata/stemLocation',
    method: 'put',
    data: data
  })
}

// 删除遏制地点
export function delStemLocation(id) {
  return request({
    url: '/qcmasterdata/stemLocation/' + id,
    method: 'delete'
  })
}

// 导出遏制地点
export function exportStemLocation(query) {
  return request({
    url: '/qcmasterdata/stemLocation/export',
    method: 'post',
    params: query
  })
}

// 导入遏制地点
export function importStemLocation(data) {
  return request({
    url: '/qcmasterdata/stemLocation/import',
    method: 'post',
    data
  })
}
